<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h2>spring boot connector jsp</h2>
    <ul>
        <li>${person.name}</li>
        <li>${person.age}</li>
        <li>${person.sex}</li>
        <li>${person.addr}</li>
    </ul>
    <hr>
    <table border="1px" width="500px">
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>地址</th>
        </tr>
        <c:forEach items="${peopleList}" var="person">
            <tr>
                <td>${person.name}</td>
                <td>${person.age}</td>
                <td>${person.sex}</td>
                <td>${person.addr}</td>
            </tr>
        </c:forEach>
        <c:forEach items="${integers}" var="integer">
            <tr>
                <td>john${integer}</td>
                <td>${integer * 2}</td>
                <td>${integer%2 == 0 ? "男":"女"}</td>
                <td>上海闵行区申滨路${integer}号</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
